package com.qf.ssm.pojo;


import org.springframework.util.StringUtils;

public class TbGoodsType implements CheckNull{
  private Long id;
  private String name;
  private Long level;
  private Long Parent;
  private String status;

@Override
  public boolean isEmpty(){
  System.out.println( StringUtils.isEmpty(level)||StringUtils.isEmpty(name)||StringUtils.isEmpty(Parent));
  System.out.println( StringUtils.isEmpty(level)&StringUtils.isEmpty(name)&StringUtils.isEmpty(Parent));

    return StringUtils.isEmpty(level)||StringUtils.isEmpty(name)||StringUtils.isEmpty(Parent);
  }

  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public Long getLevel() {
    return level;
  }

  public void setLevel(Long level) {
    this.level = level;
  }

  public Long getParent() {
    return Parent;
  }

  public void setParent(Long parent) {
    this.Parent = parent;
  }

  public String getStatus() {
    return status;
  }

  public void setStatus(String status) {
    this.status = status;
  }

  @Override
  public String toString() {
    return "TbGoodsType{" +
            "id=" + id +
            ", name='" + name + '\'' +
            ", level=" + level +
            ", Parent=" + Parent +
            ", status='" + status + '\'' +
            '}';
  }
}
